#
# def stu_register(name ,age,course,country="china"):
#     print("student info message".center(50,"="))
#     print("name:", name)
#     print('age:',age)
#     print("country:",country)
#     print("course:",course)
#
#     if age >22:
#         return  False
#     else:
#         return  True
#
# stu_status = stu_register("alex",221,"python")
# if stu_status:
#     print("注册成功")
# else:
#     print("u are  old ")
#
# stu_status =  stu_register("aliang",25,"python",country="韩国")
# if stu_status:
#     print("注册成功")
# else:
#     print("u are old ")

# def baojing(message, *user):
#     for u in user:
#         print("警报警报",u)
#
# baojing("test_core", "aelx","aliang","yunwei")
#
# def testa(name,*args,**kwargs):
#     print(name,args,kwargs)
#
# testa('alex','china','python',sex='male',provice= "taiwan")


def  regsiteter(name,age,course,country="CHINA"):
    print("注册学生信息".center(50,"="))
    print("name:",name)
    print("age",age)
    print("course:",course)
    print("country",country)

regsiteter("alex",22,"python")
regsiteter("hongliang",22,"python","韩国人")


def func(name,*args, **kwargs):
    print(name,args,kwargs)

func('alex',22,'tesla','500w',addr="山东",num=12123)